﻿<?php 
$page = 1;
$lang = $this->arrParam['lang'];
if(empty($lang)){
	$lang = 'vi';
}else{
	$lang = $this->arrParam['lang'];
}
$urlFood 	= array('module'=>'products','controller'=>'index','action'=>'index','lang'=>$lang, 'page'=>$page);
$linkFood 	= $this->url($urlFood,'products');
?>
<div class="box width-30 home">
                            <div class="box-ctn">
                                <div class="title">
                                    <div class="bg-title-l"></div>
                                    <div class="bg-title-c"><p>Thực đơn</p></div>
                                    <div class="bg-title-r"></div>
                                </div>
                                <div class="list width-80 mar-left-10t">
                                    <!------Danh sach mon an------->
<!--                                    <div class="flexslider">-->
                                        <ul class="lv2">
<!--                                        <ul class="slides">-->
                                        <?php 
                                        $check	= 0;
                                        //menu
                                        $tblGroupCategory= $this->tblGroupCategory;
                                        //echo "<pre>"; print_r($tblGroupCategory); exit;
                                        $tblCutring	= new Zendvn_File_CutTring();
                                        $ls		= count($tblGroupCategory);
                                        if(!empty($tblGroupCategory)){
                                        	for($i=0; $i<8; $i++){
                                        
                                        ?>
                                                                    <?php //echo "<pre>";
																		$cid= $tblGroupCategory[$i]['id'];
																		$cid = array('module'=>'products',
																				'controller'=>'index',
																				'action'=>'category',
																				'cid'=>$cid,
																				'name'=>$tblGroupCategory[$i]['alias'],
																				'lang'=>$lang,
																				'page'=>$page);
																		$cid 	= $this->url($cid,'products-category');
                                                                    ?>
                                                                        <li>
                                                                        	<a href="<?php echo $cid;?>" title="Món 01" class="act">
                                                                        	<?php echo $tblGroupCategory[$i]['name'];?></a>
                                                                        </li>    
                                                                   
                                                        <?php 
                                    		}
                                    	}
                                    	else echo "<p style='text-align:center'>"."Chưa có danh mục nào !"."</p>";
										?>	        
                                                               
                                            <!-- items mirrored twice, total of 12 -->
                                        </ul>
<!--                                    </div>-->
                                    <!-- FlexSlider -->
                                </div>
                                <a class="button" title="Xem thêm" href="<?php echo $linkFood;?>">Xem thêm</a>
                                <div class="clear"></div>
                            </div>
                            <div class="clear"></div>
                        </div>